package com.jy.app.lib.bean;

import java.io.Serializable;

/**
 * Created by jan on 2016/4/28.
 */
public class BaseResponse<T> implements Serializable {
    private T data;
    private String state;
    private String desc;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public int getCode() {
        return Integer.parseInt(state);
    }

    public void setCode(int code) {
        this.state = code+"";
    }

    public String getMsg() {
        return desc;
    }

    public void setMsg(String msg) {
        this.desc = msg;
    }

    public void setState(String state){ this.state = state; }

    public String getState(){return state ;}

    public void setDesc(String desc){ this.desc = desc;}

    public String getDesc(String desc){ return desc; }

}
